package com.control.qct.businesssteward.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.control.qct.businesssteward.R;
import com.control.qct.businesssteward.base.BaseFragment;
import com.control.qct.businesssteward.model.TypeStatisticModel;
import com.control.qct.businesssteward.costom.PieChartShow;
import com.github.mikephil.charting.charts.PieChart;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

/**
 * Created by Administrator on 2017/12/26 0026.
 */

public class SupplierStatisticFragment extends BaseFragment {
    @BindView(R.id.pc_type)
    PieChart mPcType;
    private ArrayList<Integer> mColors;
    private List<TypeStatisticModel> mTypeStatisticModelList;


    @Override
    protected View initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle
            savedInstanceState) {
        return inflater.inflate(R.layout.fragment_type_statistic, container, false);
    }

    @Override
    protected void initView(View view) {
        activity.setTitle("供应商统计表");
        setTypeStatisticBeanList();
        PieChartShow.getInstance().show(mPcType, mTypeStatisticModelList);
    }

    public void setTypeStatisticBeanList() {
        mTypeStatisticModelList = new ArrayList<>();
    }
}
